package cloud.shyidong.tenant.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Description TODO
 * @Author syd
 * @Date 2023/8/25
 */
@Data
public class TenantInfoUpdatePasswordRequest {
    
    @NotBlank(message = "缺少旧密码")
    @Pattern(regexp = "^[A-Za-z0-9]{8,16}", message = "旧密码必须为8到16位字母或数字")
    private String oldPassword;
    
    @NotBlank(message = "缺少新密码")
    @Pattern(regexp = "^[A-Za-z0-9]{8,16}", message = "新密码必须为8到16位字母或数字")
    private String newPassword;
    
}
